home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Languages / Prograph Classic 2.6.1 / Examples / DragItem / CopyPix XDEF • Read me next >
Text File  |  1995-12-05  |  2KB  |  40 lines

  1. Prograph CopyPix contains two extensions, CopyPix and CopyPixMask. The reason 
  2. these exist at all is because usually CopyBits will accept either a BitMap or
  3. a PixMap, but because of Prograph Classics type checking, a PixMap will not work.  
  4.  
  5. pascal void CopyPix (const PixMap *srcBits, const PixMap *dstBits, const Rect
  6. *srcRect, const Rect *dstRect, short mode, RgnHandle maskRgn);
  7.  
  8. You can use the CopyPix procedure to copy a portion of a PixMap from one graphics
  9. port (or offscreen graphics world) into another graphics port.
  10.  
  11. PROCEDURE CopyBits (srcBits,dstBits: PixMap; 
  12.                           srcRect,dstRect: Rect; mode: Integer; 
  13.                           maskRgn: RgnHandle);
  14.  
  15. srcBits        The source PixMap record.
  16. dstBits        The destination PixMap record.
  17. srcRect        The source rectangle.
  18. dstRect        The destination rectangle.
  19. mode        One of the eight source modes in which the copy is to be performed.
  20. maskRgn        A region to use as a clipping mask.
  21.  
  22.  
  23.  
  24. pascal void CopyPixMask (const PixMap *srcBits, const PixMap *maskBits, const
  25. PixMap *dstBits, const Rect *srcRect, const Rect *maskRect, const Rect *dstRect);
  26.  
  27. You can use the CopyPixMask procedure to copy  pixel image from one graphics port 
  28. (or offscreen graphics world) into another graphics port only where the bits in
  29.  a mask are set to  
  30.  
  31. PROCEDURE CopyPixMask(srcBits,maskBits,dstBits:PixMap; srcRect,maskRect,dstRect: Rect);
  32.  
  33. srcBits        The source PixMap record. 
  34. maskBits    The mask PixMap record.
  35. dstBits        The destination PixMap record. 
  36. srcRect        The sourcerectangle. 
  37. maskRect    The mask rectangle. This must be the same size as the rectangle passed 
  38.             in the srcRect parameter. 
  39. dstRect        The destination rectangle.
  40.